package com.leyou.item.service;

import com.leyou.common.page.pageResult;
import com.leyou.item.dto.SkuDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.dto.SpuDetailDTO;

import java.util.List;

public interface GoodsService {
    pageResult<SpuDTO> findSpuByPage(Integer page, Integer rows, String key, Boolean saleable);

    void saveGoods(SpuDTO spuDTO);

    void saleableGoods(Long id, Boolean saleable);

    SpuDetailDTO findSpuDetailBySpuId(Long spuId);

    List<SkuDTO> findSkuBySpuId(Long spuId);

    void updateGoods(SpuDTO spuDTO);
}
